package com.qiaoba.auth.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录日志
 *
 * @author ailanyin
 * @version 1.0
 * @since 2023/6/19 14:31
 */
@Data
@TableName("sys_login_log")
public class SysLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String loginId;

    @Excel(name = "登录账号", width = 25)
    private String username;

    @Excel(name = "访问IP", width = 25)
    private String ip;

    @Excel(name = "登录地点", width = 25)
    private String address;

    @Excel(name = "浏览器", width = 30)
    private String browser;

    @Excel(name = "操作系统", width = 20)
    private String os;

    @Excel(name = "状态", width = 20, replace = {"正常_1", "异常_0"})
    private String status;

    @Excel(name = "详细信息", width = 30)
    private String msg;

    @Excel(name = "登录时间", format = "yyyy-MM-dd HH:mm:ss", width = 30)
    private Date loginTime;
}
